package com.ruoyi.wareManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wareManagement.mapper.ScrapInventoryInquiryMapper;
import com.ruoyi.wareManagement.domain.ScrapInventoryInquiry;
import com.ruoyi.wareManagement.service.IScrapInventoryInquiryService;

/**
 * 报废库存查询Service业务层处理
 * 
 * @author admin
 * @date 2024-06-28
 */
@Service
public class ScrapInventoryInquiryServiceImpl implements IScrapInventoryInquiryService 
{
    @Autowired
    private ScrapInventoryInquiryMapper scrapInventoryInquiryMapper;

    /**
     * 查询报废库存查询
     * 
     * @param scrapId 报废库存查询主键
     * @return 报废库存查询
     */
    @Override
    public ScrapInventoryInquiry selectScrapInventoryInquiryByScrapId(Long scrapId)
    {
        return scrapInventoryInquiryMapper.selectScrapInventoryInquiryByScrapId(scrapId);
    }

    /**
     * 查询报废库存查询列表
     * 
     * @param scrapInventoryInquiry 报废库存查询
     * @return 报废库存查询
     */
    @Override
    public List<ScrapInventoryInquiry> selectScrapInventoryInquiryList(ScrapInventoryInquiry scrapInventoryInquiry)
    {
        return scrapInventoryInquiryMapper.selectScrapInventoryInquiryList(scrapInventoryInquiry);
    }

    /**
     * 新增报废库存查询
     * 
     * @param scrapInventoryInquiry 报废库存查询
     * @return 结果
     */
    @Override
    public int insertScrapInventoryInquiry(ScrapInventoryInquiry scrapInventoryInquiry)
    {
        return scrapInventoryInquiryMapper.insertScrapInventoryInquiry(scrapInventoryInquiry);
    }

    /**
     * 修改报废库存查询
     * 
     * @param scrapInventoryInquiry 报废库存查询
     * @return 结果
     */
    @Override
    public int updateScrapInventoryInquiry(ScrapInventoryInquiry scrapInventoryInquiry)
    {
        return scrapInventoryInquiryMapper.updateScrapInventoryInquiry(scrapInventoryInquiry);
    }

    /**
     * 批量删除报废库存查询
     * 
     * @param scrapIds 需要删除的报废库存查询主键
     * @return 结果
     */
    @Override
    public int deleteScrapInventoryInquiryByScrapIds(Long[] scrapIds)
    {
        return scrapInventoryInquiryMapper.deleteScrapInventoryInquiryByScrapIds(scrapIds);
    }

    /**
     * 删除报废库存查询信息
     * 
     * @param scrapId 报废库存查询主键
     * @return 结果
     */
    @Override
    public int deleteScrapInventoryInquiryByScrapId(Long scrapId)
    {
        return scrapInventoryInquiryMapper.deleteScrapInventoryInquiryByScrapId(scrapId);
    }
}
